package cn.sherer.beans.douyin;

/**
 * 抖音登录
 */
public class DyLogin extends DyResult<String> {
    // 网站、APP 公用
    private String access_token;
    private int expires_in;
    private String refresh_token;
    private int refresh_expires_in;
    private String scope;
    private String open_id;
    private String captcha;
    private String desc_url;
    private String log_id;

    // 小程序
    private String session_key;
    private String openid;
    private String anonymous_openid;
    private String unionid;
    private String dopenid;

    public DyLogin() {
    }

    public DyLogin(int err_no, String err_tips) {
        super(err_no, err_tips);
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public int getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public int getRefresh_expires_in() {
        return refresh_expires_in;
    }

    public void setRefresh_expires_in(int refresh_expires_in) {
        this.refresh_expires_in = refresh_expires_in;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getOpen_id() {
        return open_id;
    }

    public void setOpen_id(String open_id) {
        this.open_id = open_id;
        this.openid = open_id;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public String getDesc_url() {
        return desc_url;
    }

    public void setDesc_url(String desc_url) {
        this.desc_url = desc_url;
    }

    public String getLog_id() {
        return log_id;
    }

    public void setLog_id(String log_id) {
        this.log_id = log_id;
    }

    public String getSession_key() {
        return session_key;
    }

    public void setSession_key(String session_key) {
        this.session_key = session_key;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
        this.open_id = openid;
    }

    public String getAnonymous_openid() {
        return anonymous_openid;
    }

    public void setAnonymous_openid(String anonymous_openid) {
        this.anonymous_openid = anonymous_openid;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getDopenid() {
        return dopenid;
    }

    public void setDopenid(String dopenid) {
        this.dopenid = dopenid;
    }

    @Override
    public String toString() {
        return "DyLogin{" + "access_token=" + access_token + ", expires_in=" + expires_in + ", refresh_token=" + refresh_token + ", refresh_expires_in=" + refresh_expires_in + ", scope=" + scope + ", open_id=" + open_id + ", session_key=" + session_key + ", openid=" + openid + ", anonymous_openid=" + anonymous_openid + ", unionid=" + unionid + ", dopenid=" + dopenid + "}";
    }
}
